<template>
  <div class="WeddingFromBox">
    <div class="block">
      <span class="demonstration">时间：</span>
      <el-date-picker
        v-model="value1"
        type="daterange"
        range-separator="--"
        start-placeholder="开始日期"
        end-placeholder="结束日期"
      >
      </el-date-picker>
    </div>
    <div class="pull-a">
      <span>订单筛选：</span>
      <el-select v-model="value2" placeholder="请选择">
        <el-option
          v-for="item in options2"
          :key="item.value"
          :label="item.label"
          :value="item.value"
        >
        </el-option>
      </el-select>
    </div>
    <div class="pull-b">
      <el-select v-model="value3" placeholder="请选择">
        <el-option
          v-for="item in options3"
          :key="item.value"
          :label="item.label"
          :value="item.value"
        >
        </el-option>
      </el-select>
    </div>
    <div class="pull-c">
      <input type="text" placeholder="主持人姓名" />
    </div>
    <div class="pull-d">
      <button class="pull-d-btn">筛选</button>
    </div>
    <div class="queryOrder">
      <span class="queryOrder-a">当前共查询到<i  class="inquire"> xx </i>条订单,总订单额度<i class="limit"> xxx </i>元</span>
      <span class="queryOrder-b">导出订单列表</span>
    </div>
    <div class="WeddingTable">
      <el-table :data="tableData" border style="width: 100%">
        <el-table-column fixed prop="date" label="典礼时间" width="150">
        </el-table-column>
        <el-table-column prop="name" label="主持人" width="160">
        </el-table-column>
        <el-table-column prop="province" label="酒店名称酒店地址" width="220">
        </el-table-column>
        <el-table-column prop="city" label="下单时间" width="120">
        </el-table-column>
        <el-table-column prop="address" label="金额" width="300">
        </el-table-column>
        <el-table-column prop="zip" label="下单人" width="120"> </el-table-column>
        <el-table-column prop="dingdan" label="订单状态" width="120"></el-table-column>
        <el-table-column prop="beizhu" label="备注" width="120"></el-table-column>
        <el-table-column fixed="right" label="操作" width="100">
          <template slot-scope="scope">
            <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      pickerOptions: {
        shortcuts: [
          {
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit("pick", [start, end]);
            },
          },
          {
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
              picker.$emit("pick", [start, end]);
            },
          },
          {
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
              picker.$emit("pick", [start, end]);
            },
          },
        ],
      },
      value1: "",
      options2: [
        {
          value: "选项1",
          label: "全部订单",
        },
        {
          value: "选项2",
          label: "待主持",
        },
        {
          value: "选项3",
          label: "已主持",
        },
        {
          value: "选项4",
          label: "已删除",
        },
      ],
      value2: "全部订单",
      options3: [
        {
          value: "选项1",
          label: "全部",
        },
        {
          value: "选项2",
          label: "小美",
        },
        {
          value: "选项3",
          label: "丽丽",
        },
        {
          value: "选项4",
          label: "丹丹",
        },
      ],
      value3: "策划师姓名",
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          province: "上海",
          city: "普陀区",
          address: "上海市普陀区金沙江路 1518 弄",
          zip: 200333,
          dingdan:"啊实打实的",
          beizhu:"asdsad"
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          province: "上海",
          city: "普陀区",
          address: "上海市普陀区金沙江路 1517 弄",
          zip: 200333,
          dingdan:"啊实打实的",
          beizhu:"asdsad"
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          province: "上海",
          city: "普陀区",
          address: "上海市普陀区金沙江路 1519 弄",
          zip: 200333,
          dingdan:"啊实打实的",
          beizhu:"asdsad"
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          province: "上海",
          city: "普陀区",
          address: "上海市普陀区金沙江路 1516 弄",
          zip: 200333,
          dingdan:"啊实打实的",
          beizhu:"asdsad"
        },
      ],
    };
  },
  methods: {
    handleClick(row) {
      console.log(row);
    },
  },
};
</script>

<style scoped lang="less">
.pull-a {
  margin-left: 450px;
  margin-top: -40px;
}
.pull-b {
  margin-left: 800px;
  margin-top: -40px;
}
.pull-c {
  margin-left: 1050px;
  margin-top: -30px;
}
.pull-d {
  margin-left: 1250px;
  margin-top: -25px;
}
.WeddingTable{
    margin-top: 30px;
}
.queryOrder{
    margin-top: 20px;
}
.queryOrder-b{
    margin-left: 150px;
    color: blue;
}
</style>